package cn.wolfcode.trip.base.mapper;
/**
 * 用户购买的商品表
 */

import cn.wolfcode.trip.base.domain.UserGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserGoods record);

    UserGoods selectByPrimaryKey(Long id);

    List<UserGoods> selectAll();

    int updateByPrimaryKey(UserGoods record);

    UserGoods selectByStoreId(@Param("id") Long id, @Param("uid") Long aLong);

    void updateNumber(@Param("number") Integer number,@Param("id") Long id);

    List<UserGoods> listByUserId(UserGoods userGoods);

    void update( UserGoods userGoods);


    List<UserGoods> checkPassword(@Param("password") String password,@Param("uid") Long uid);

    List<UserGoods> selectBuyStore(UserGoods userGoods);
}